(self.AMP=self.AMP||[]).push({n:"amp-fit-text",v:"2102130314001",m:0,f:(function(AMP,_){ 'use strict';var p;function aa(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c=b.t.length&&b.t.push({}),b.t[a]}function La(){return Ma(function(){return{current:null}})}function Ma(a){var b=[],c=J();return Na(c.o,b)?(c.o=b,c.v=a,c.i=a()):c.i}function Oa(){Ga.some(function(a){a.__P&&(a.__H.u.forEach(Pa),a.__H.u.forEach(Qa),a.__H.u=[])});Ga=[]}function Pa(a){a.m&&a.m()}function Qa(a){var b=a.i();"function"==typeof b&&(a.m=b)} function Na(a,b){return!a||b.some(function(c,d){return c!==a[d]})}q.__r=function(a){Ha&&Ha(a);Ea=0;(I=a.__c).__H&&(I.__H.u.forEach(Pa),I.__H.u.forEach(Qa),I.__H.u=[])};q.diffed=function(a){Ia&&Ia(a);if(a=a.__c){var b=a.__H;b&&b.u.length&&(1!==Ga.push(a)&&Fa===q.requestAnimationFrame||((Fa=q.requestAnimationFrame)||function(c){function d(){clearTimeout(e);cancelAnimationFrame(f);setTimeout(c)}var f,e=setTimeout(d,100);"undefined"!=typeof window&&(f=requestAnimationFrame(d))})(Oa))}}; q.__c=function(a,b){b.some(function(c){c.__h.forEach(Pa);c.__h=c.__h.filter(function(d){return!d.i||Qa(d)})});Ja&&Ja(a,b)};q.unmount=function(a){Ka&&Ka(a);(a=a.__c)&&(a=a.__H)&&a.t.forEach(function(b){return b.m&&b.m()})};function Ra(a,b,c){return oa.apply(void 0,arguments)}function Sa(a){var b=J();Na(b.o,void 0)&&(b.i=a,b.o=void 0,I.__H.u.push(b))}function Ta(a,b){var c=J();Na(c.o,b)&&(c.i=a,c.o=b,I.__h.push(c))};function Ua(a,b){for(var c in a)if("__source"!==c&&!(c in b))return!0;for(var d in b)if("__source"!==d&&a[d]!==b[d])return!0;return!1}(function(a){function b(c){var d;return(d=a.call(this,c)||this).isPureReactComponent=!0,d}return b.prototype=Object.create(a.prototype),b.prototype.constructor=b,b.__proto__=a,b.prototype.shouldComponentUpdate=function(c,d){return Ua(this.props,c)||Ua(this.state,d)},b})(E);var Va=q.vnode; q.vnode=function(a){a.type&&a.type.t&&a.ref&&(a.props.ref=a.ref,a.ref=null);Va&&Va(a)};var Wa=q.__e;function Xa(a){if(a){var b={},c;for(c in a)b[c]=a[c];(a=b).__c=null;a.__k=a.__k&&a.__k.map(Xa)}return a}function Ya(){this.__u=0;this.__b=null}function Za(a){var b=a.__.__c;return b&&b.o&&b.o(a)}function K(){this.i=this.u=null}q.__e=function(a,b,c){if(a.then)for(var d,f=b;f=f.__;)if((d=f.__c)&&d.l)return d.l(a,b.__c);Wa(a,b,c)}; (Ya.prototype=new E).l=function(a,b){function c(){--f.__u||(f.__v.__k[0]=f.state.o,f.setState({o:f.__b=null}))}function d(){g||(g=!0,e?e(c):c())}var f=this,e=Za(f.__v),g=!1;b.__c=b.componentWillUnmount;b.componentWillUnmount=function(){d();b.__c&&b.__c()};f.__u++||f.setState({o:f.__b=f.__v.__k[0]});a.then(d,d)};Ya.prototype.render=function(a,b){return this.__b&&(this.__v.__k[0]=Xa(this.__b),this.__b=null),[oa(E,null,b.o?null:a.children),b.o&&a.fallback]}; function $a(a,b,c){if(++c[1]===c[0]&&a.i.delete(b),a.props.revealOrder&&("t"!==a.props.revealOrder[0]||!a.i.size))for(c=a.u;c;){for(;3a.indexOf(b)?(a.push(b),!0):!1}function pb(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};function qb(a){function b(){f=!1;a()}var c=setTimeout,d=c=void 0===c?null:c,f=!1;return function(e){f||(f=!0,(e||d)(b))}};var R=[];function rb(){}function sb(a){this.h=a;this.C=this.F=null;this.I=qb(this.I.bind(this))}p=sb.prototype;p.set=function(a,b,c){var d=a.key,f=this.F||(this.F=new Map),e=f.get(d);e||(e={values:[],setters:[]},f.set(d,e));d=e.setters.indexOf(b);var g=-1==d||e.values[d]!==c;-1==d?(e.setters.push(b),e.values.push(c)):g&&(e.values[d]=c);g&&(this.ping(a,!1),a.recursive&&Q(this.h,tb,a,!0,!1))}; p.remove=function(a,b){var c=a.key,d=this.F,f=d&&d.get(c);f&&(b=f.setters.indexOf(b),-1!=b&&(f.setters.splice(b,1),f.values.splice(b,1),0==f.setters.length&&d.delete(c),Q(this.h,tb,a)))};p.has=function(a){var b=this.F;return!!b&&b.has(a.key)};p.subscribe=function(a,b){var c=ub(this,a);if(ob(c.subscribers,b)){var d=c.value;S(d)&&this.h.root&&b(d)}};p.unsubscribe=function(a,b){a=a.key;var c=this.C;(a=c&&c.get(a))&&pb(a.subscribers,b)&&vb(this,a)}; p.ping=function(a,b){a=a.key;var c=this.C;(a=c&&c.get(a))&&a.ping(b)};p.parentUpdated=function(){this.h.root&&Q(this.h,wb,void 0,R)};p.rootUpdated=function(){var a=this,b=this.C;b&&(this.h.root?b.forEach(function(c){a.ping(c.prop,!0)}):b.forEach(function(c){c.prop.recursive&&xb(c,null)}))};p.scan=function(a){this.ping(a,!0);return!a.recursive||this.has(a)?!1:!0}; p.scanAll=function(a){var b=this,c=null,d=this.C;d&&d.forEach(function(f){f=f.prop;-1==(c||a).indexOf(f.key)&&(b.ping(f,!0),b.h.children&&b.has(f)&&(c||(c=a.slice(0)),c.push(f.key)))});return c||a}; function ub(a,b){var c=b.key,d=b.deps,f=a.C||(a.C=new Map),e=f.get(c);e||(e={prop:b,subscribers:[],value:void 0,pending:0,counter:0,depValues:0f&&(d=g,f=e)});return d}; p.mountComponent=function(a,b,c,d,f){var e=this.H||(this.H=new Map),g=e.get(a);g||(g=b(a,this,c,d),e.set(a,g));g.set(f)};p.unmountComponent=function(a){var b=this.H,c=b&&b.get(a);c&&(c.dispose(),b.delete(a))};p.pushCleanup=function(a){var b=this.D||(this.D=[]);ob(b,a)};p.popCleanup=function(a){var b=this.D;b&&pb(b,a)};p.N=function(){if(this.isDiscoverable()){var a=Cb(this.node,!1),b=a&&a.findGroup(this.node)||a;Db(this,b,!1)}}; function Db(a,b,c){a.L=c;var d=a.parent;if(b!=d){a.parent=b;d&&d.children&&pb(d.children,a);if(b){var f=b.children||(b.children=[]);ob(f,a);for(var e=0;eb||l>d?e=g:f=g}d=f;N(a.j,"fontSize",d+"px");c=a.j;a=a.B;N(a,"fontSize",d+"px");a=a.offsetHeight>b;d*=1.15;b=Math.floor(b/d);c.classList.toggle("i-amphtml-fit-text-content-overflown",a);O(c,{lineClamp:a?b:"",maxHeight:a?d*b+"px":""})}(function(a){a.registerElement("amp-fit-text",X,".i-amphtml-fit-text-content,.i-amphtml-fit-text-content.i-amphtml-fill-content{display:block;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:center;justify-content:center}.i-amphtml-fit-text-content-overflown{display:block;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}\n/*# sourceURL=/extensions/amp-fit-text/0.1/amp-fit-text.css*/")})(self.AMP); })}); //# sourceMappingURL=amp-fit-text-0.1.js.map